package com.example.bean;

import com.example.annotation.Log;
import org.springframework.beans.factory.annotation.Autowired;

public class A {
    @Autowired
    private B b;

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    @Log
    public void test1() {
        System.out.println("A#test1 :: b = " + b);
    }

    @Log
    public String test2() {
        return "A#test2 :: b = " + b;
    }

}
